package 设计模式.策略模式;

/**
 * 策略类
 */
public class stragery {

    private final animal animal;

    public stragery(animal animal){
        this.animal = animal;
    }

    public String animalLive(){
        return animal.live();
    }
}
